﻿<common:LayoutAwarePage
    x:Name="pageRoot"
    x:Class="BlipSansBlop.CommandsPage"
    DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BlipSansBlop"
    xmlns:common="using:BlipSansBlop.Common"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
	
    <!--
        This grid acts as a root panel for the page that defines two rows:
        * Row 0 contains the back button and page title
        * Row 1 contains the rest of the page layout
    -->
    <Grid Style="{StaticResource LayoutRootStyle}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Button x:Name="backButton" Click="GoBack" IsEnabled="true" Style="{StaticResource BackButtonStyle}"/>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Style="{StaticResource PageHeaderTextStyle}">
            	<Run Text="Command"/>
            	<Run Text="e"/>
            	<Run Text="s"/>
            </TextBlock>
        </Grid>
        <Grid x:Name="Contenu" Grid.Row="1">
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="150,135,0,0" Stroke="Black" VerticalAlignment="Top" Width="75" StrokeThickness="0">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Clavier/S.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="225,135,0,0" Stroke="Black" VerticalAlignment="Top" Width="75" StrokeThickness="0">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Clavier/D.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="75,135,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Clavier/Q.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="150,64,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Clavier/Z.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<TextBlock HorizontalAlignment="Left" Height="34" Margin="325,135,0,0" TextWrapping="Wrap" Text="OU" VerticalAlignment="Top" Width="45" FontSize="24"/>
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="150,290,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Clavier/O.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="150,405,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Clavier/K.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<TextBlock HorizontalAlignment="Left" Height="34" Margin="255,310,0,0" TextWrapping="Wrap" Text="OU" VerticalAlignment="Top" Width="45" FontSize="24"/>
        	<TextBlock HorizontalAlignment="Left" Height="34" Margin="255,431,0,0" TextWrapping="Wrap" Text="OU" VerticalAlignment="Top" Width="45" FontSize="24"/>
        	<Rectangle HorizontalAlignment="Left" Height="90" Margin="325,275,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Elementsdejeu/Aup.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="90" Margin="325,390,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Elementsdejeu/Bup.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="165" Margin="375,64,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="175">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Elementsdejeu/FondJoy.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<Rectangle HorizontalAlignment="Left" Height="75" Margin="425,110,0,0" Stroke="Black" StrokeThickness="0" VerticalAlignment="Top" Width="75">
        		<Rectangle.Fill>
        			<ImageBrush ImageSource="Assets/Elementsdejeu/Joy.png"/>
        		</Rectangle.Fill>
        	</Rectangle>
        	<TextBlock HorizontalAlignment="Left" Height="59" Margin="645,110,0,0" TextWrapping="Wrap" Text="Se déplacer et orienter les tirs" VerticalAlignment="Top" Width="370" FontSize="24"/>
        	<TextBlock HorizontalAlignment="Left" Height="59" Margin="645,306,0,0" TextWrapping="Wrap" Text="Tirer" VerticalAlignment="Top" Width="370" FontSize="24"/>
        </Grid>
        <TextBlock HorizontalAlignment="Left" Height="59" Margin="645,420,0,0" TextWrapping="Wrap" Text="Sauter" VerticalAlignment="Top" Width="370" FontSize="24" Grid.Row="1"/>

        <VisualStateManager.VisualStateGroups>

            <!-- Visual states reflect the application's view state -->
            <VisualStateGroup x:Name="ApplicationViewStates">
                <VisualState x:Name="FullScreenLandscape"/>
                <VisualState x:Name="Filled"/>

                <!-- The entire page respects the narrower 100-pixel margin convention for portrait -->
                <VisualState x:Name="FullScreenPortrait">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PortraitBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>

                <!-- The back button and title have different styles when snapped -->
                <VisualState x:Name="Snapped">
                    <Storyboard>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="backButton" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedBackButtonStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames Storyboard.TargetName="pageTitle" Storyboard.TargetProperty="Style">
                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource SnappedPageHeaderTextStyle}"/>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
    </Grid>
</common:LayoutAwarePage>
